const _ = require('lodash')

const log = v => {
  console.log(v)
  return v
}
const trace = _.curry((tag, v) => {
  console.log(tag, v)
  return v
})
//.split调试
const split = _.curry((sep, str) => _.split(str, sep))
// _.toLower()
const join = _.curry((sep, array) => _.join(array, sep))
const map = _.curry((fn,array)=>_.map(array,fn))
const f=_.flowRight(join('_'),trace('map之后'),map(_.toUpper),trace('split之后'),split(','))
console.log(f('never say can not'))
